<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html;charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>文献管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<link href="css/css.css" type="text/css" rel="stylesheet" />
<link href="css/main.css" type="text/css" rel="stylesheet" />
<link rel="shortcut icon" href="images/main/favicon.ico" />

<script type="text/javascript">
/*
 *_contextPath:上下文路径
 *_modulePath: 模块路径
 */
var  _contextPath="<%=path%>";
var  _modulePath=_contextPath+"/sys/";
$(document).ready(function(){
  $(".clicks").click(function(){
   _open(_modulePath+"textures_open.action?view=add");
  });
});
</script>
<script type="text/javascript"> 
function del(){ 
if(!confirm("确认要删除？")){ 
window.event.returnValue = false; 
} 
} 
</script>
<style>
body{overflow-x:hidden; background:#f2f0f5; padding:15px 0px 10px 5px;}
#searchmain{ font-size:12px;}
#search{ font-size:12px; background:#548fc9; margin:10px 10px 0 0; display:inline; width:100%; color:#FFF; float:left}
#search form span{height:40px; line-height:40px; padding:0 0px 0 10px; float:left;}
#search form input.text-word{height:24px; line-height:24px; width:180px; margin:8px 0 6px 0; padding:0 0px 0 10px; float:left; border:1px solid #FFF;}
#search form input.text-but{height:24px; line-height:24px; width:55px; background:url(images/main/list_input.jpg) no-repeat left top; border:none; cursor:pointer; font-family:"Microsoft YaHei","Tahoma","Arial",'宋体'; color:#666; float:left; margin:8px 0 0 6px; display:inline;}
#search a.add{ background:url(images/main/add.jpg) no-repeat -3px 7px #548fc9; padding:0 10px 0 26px; height:40px; line-height:40px; font-size:14px; font-weight:bold; color:#FFF; float:right}
#search a:hover.add{ text-decoration:underline; color:#d2e9ff;}
#main-tab{ border:1px solid #eaeaea; background:#FFF; font-size:12px;}
#main-tab th{ font-size:12px; background:url(images/main/list_bg.jpg) repeat-x; height:32px; line-height:32px;}
#main-tab td{ font-size:12px; line-height:40px;}
#main-tab td a{ font-size:12px; color:#548fc9;}
#main-tab td a:hover{color:#565656; text-decoration:underline;}
.bordertop{ border-top:1px solid #ebebeb}
.borderright{ border-right:1px solid #ebebeb}
.borderbottom{ border-bottom:1px solid #ebebeb}
.borderleft{ border-left:1px solid #ebebeb}
.gray{ color:#dbdbdb;}
td.fenye{ padding:10px 0 0 0; text-align:right;}
.bggray{ background:#f9f9f9}
</style>

  </head>
<body>
<%int i=1;%> 
  <!--main_top-->
<table width="99%" border="0" cellspacing="0" cellpadding="0" id="searchmain">
  <tr>
    <td width="99%" align="left" valign="top">您的位置：文献管理</td>
  </tr>
  <tr>
    <td align="left" valign="top">
       <table width="100%" border="0" cellspacing="0" cellpadding="0" id="search">
  		<tr>
   		 <td width="90%" align="left" valign="middle">
	         <form action="<%= basePath%>/Literature_onelist.action?deleted=0" method="post"  target="mainFrame">
	         <span>文献编号:&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;
	         <input type="text" name="lit.litId" id = "lit.litId" class="text-word" placeholder="请输入文献编号"/>
	         <input name="" type="submit" value="查询" class="text-but">
	          <div>
	          <th width="10%" align="center" valign="center style="text-align:midden; width:150px;">
	  		  	<a href="<%= basePath%>/Literature_openupload.action" method="post" target="mainFrame" class="add">文献上传</a>
	  		  </th>
	  		  </div>
	  		  	</form>
         </td>         		 		  
  		</tr>
	</table>

    </td>
  </tr>
  <tr>
    <td align="left" valign="top">  
    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="main-tab">
    <thead>
      <tr>
      	<th align="center" valign="middle" class="borderright">序号</th>
      	<th align="center" valign="middle" class="borderright">文献编号</th>
        <th align="center" valign="middle" class="borderright">文献名称</th>
        <!-- <th align="center" valign="middle" class="borderright">文献价格</th>
        <th align="center" valign="middle" class="borderright">出版社</th>
        <th align="center" valign="middle" class="borderright">文摘</th> -->
        <th align="center" valign="middle" class="borderright">保存路径</th>
        <th align="center" valign="middle" class="borderright">文献类型</th>
         <th align="center" valign="middle" class="borderright">文献级别</th>
          <th align="center" valign="middle" class="borderright">文献主题</th>
        <th align="center" valign="middle" class="borderright">文献上传日期</th>
        <th align="center" valign="middle" class="borderright">文献大小</th>
        <th align="center" valign="middle">操作</th>
      </tr>
    </thead>
     <s:iterator value="ListLit"  id = "lite"  >
      <tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'">
        <td align="center" valign="middle" class="borderright borderbottom"><%=i++%></td>
		<td align="center" valign="middle" class="borderright borderbottom">${lite.litId}</td>
        <td align="center" valign="middle" class="borderright borderbottom">${lite.uploadFileName}</td>
       <%--  <td align="center" valign="middle" class="borderright borderbottom">${lite.litPrice}</td>
        <td align="center" valign="middle" class="borderright borderbottom">${lite.litPublished}</td>
         <td align="center" valign="middle" class="borderright borderbottom">${lite.litAbstract}</td> --%>
        <td align="center" valign="middle" class="borderright borderbottom">${lite.savePath}</td>
        <td align="center" valign="middle" class="borderright borderbottom">${lite.uploadContentType}</td>
         <td align="center" valign="middle" class="borderright borderbottom">${lite.litGrade}</td>
          <td align="center" valign="middle" class="borderright borderbottom">${lite.litTheme}</td>
        <td align="center" valign="middle" class="borderright borderbottom">${lite.litUploadTime}</td>
        <td align="center" valign="middle" class="borderright borderbottom">${lite.litSize}KB</td> 
   
        <td align="center" valign="middle" class="borderbottom">
        <a href="<%=basePath%>/download.action?fileName=${lite.uploadFileName}" target="mainFrame" class="add">下载</a><span class="gray">&nbsp;|&nbsp;</span>
        	<a href="<%=basePath%>/Literature_openUpdate.action?lit.litId=${lite.litId}" target="mainFrame" onFocus="this.blur()" class="add">修改</a><span class="gray">&nbsp;|&nbsp;</span>
        	<a href="<%=basePath%>/Literature_oneDelete0.action?lit.litId=${lite.litId}" target="mainFrame" onFocus="this.blur()" class="add" onclick="return del()">删除</a>
        </td>
      </tr>
	</s:iterator>

    </table>
    </td>
   </tr>
   
<tr>
    <td align="left" valign="top" class="fenye">${totalRow }条数据 1/1 页&nbsp;&nbsp;<a href="<%=basePath%>/Literature_onelist.action?page=1" target="mainFrame" onFocus="this.blur()">首页</a>&nbsp;&nbsp;<a href="<%=basePath%>/Literature_onelist.action?page=${page-1}" target="mainFrame" onFocus="this.blur()">上一页</a>&nbsp;&nbsp;<a href="<%=basePath%>/Literature_onelist.action?page=${page+1}" target="mainFrame" onFocus="this.blur()">下一页</a>&nbsp;&nbsp;<a href="<%=basePath%>/Literature_onelist.action?maxpage=1" target="mainFrame" onFocus="this.blur()">尾页</a></td>
  </tr>
</table>
    </td>
</tr>
 </table>   
</body>
</html>